//
//  UIColor+Ext.h
//  Excellence
//
//  Created by 帝云科技 on 2017/6/16.
//  Copyright © 2017年 diyunkeji. All rights reserved.
//

#import <UIKit/UIKit.h>

//十六进制色值
#define XHQHexColor(hexValue) [UIColor colorWithRed:((float)((hexValue & 0xFF0000) >> 16))/255.0 green:((float)((hexValue & 0xFF00) >> 8))/255.0 blue:((float)(hexValue & 0xFF))/255.0 alpha:1.0]

//RGBA色值
#define XHQRGBA(r,g,b,a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:a]
//RGB色值
#define XHQRGB(r,g,b) XHQRGBA(r,g,b,1)

#define ClearColor [UIColor clearColor]
#define WhiteColor XHQHexColor(0xffffff)
#define ColorTitle XHQHexColor(0x333333)
#define ColorContent XHQHexColor(0x666666)
#define ColorLine XHQHexColor(0xD8D8D8)
#define MainColor XHQHexColor(COLOR_VALUE_BASE)
#define LoginLineColor XHQHexColor(0xBCBCBC)

#define COLOR_VALUE_BACKGROUND 0xF0F0F0
#define COLOR_VALUE_BASE 0x19AF80  //主色调（绿）
#define COLOR_VALUE_GREEN 0x19AF80  //绿色调
#define COLOR_VALUE_ORANGE 0xEB8D34  //橙色调
#define COLOR_VALUE_BLUE 0x456FDC  //蓝色调
#define COLOR_VALUE_RED 0xFA5F5F  //红色调
#define COLOR_VALUE_LINE 0xE7E7E7  //所有线的颜色
#define COLOR_VALUE_HEXB9 0xB9B9B9 //tabBarItem
#define COLOR_VALUE_TITLE 0x333333 //标题
#define COLOR_VALUE_CONTENT 0x666666  //内容
#define COLOR_VALUE_ASSIST 0x999999 //辅助色（时间、数量、点赞等字体颜色）
#define COLOR_VALUE_SECTION 0xF6F6F6 //分区
#define COLOR_VALUE_GRAYBLUE 0xFBFBFB //灰蓝色背景
#define COLOR_VALUE_GRAYBLUE_LINE 0xB2C5F7 //线-蓝灰色
#define COLOR_VALUE_GRAYBLUE_BOARDCOLOR 0x9FBAFF //灰蓝色边
#define COLOR_VALUE_DEFAULT 0xD0D0D0 //默认灰色

@interface UIColor (Ext)


+ (instancetype)xhq_base;
+ (instancetype)xhq_background;
+ (instancetype)xhq_orange;
+ (instancetype)xhq_blue;
+ (instancetype)xhq_red;
+ (instancetype)xhq_green;
+ (instancetype)xhq_hexb9;
+ (instancetype)xhq_line;
+ (instancetype)xhq_aTitle;
+ (instancetype)xhq_content;
+ (instancetype)xhq_assist;
+ (instancetype)xhq_section;
+ (instancetype)xhq_randorm;
+ (instancetype)xhq_grayblue;
+ (instancetype)xhq_grayblue_line;
+ (instancetype)xhq_grayblue_boardcolor;
+ (instancetype)xhq_default;




@end
